
if #arg == 2 then
	local wc = {}
	for line in io.lines(arg[1]) do
		local c = wc[line]
		if c == nil then wc[line] = 1 
		else wc[line] = c + 1 end
	end

	local f = io.open(arg[2], 'w')
	for wid, c in pairs(wc) do
		f:write(wid .. '\t' .. c .. '\n')
	end
	f:close()
else
	print('<word_list_path> <output_path>')
end
